Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@hexsprite
hexsprite / pr-restack.sh
Created May 26, 2026 16:51
Rebuild a working branch by cherry-picking your open GitHub PRs onto fresh upstream main. Uses git rerere to replay conflict resolutions across runs.
#!/usr/bin/env bash
# pr-restack — rebuild a working branch by cherry-picking my open PRs
# on top of an upstream base. Relies on git rerere to replay conflict
# resolutions across runs.
#
# Usage:
# pr-restack # from inside any git repo with gh access
# pr-restack -b my-branch # custom branch name
# pr-restack -r upstream/main # custom base ref
# pr-restack -o origin -u upstream # remote names
@boringmarketer
boringmarketer / direct-response-copy-gist.md
Created January 27, 2026 18:06
The Direct Response Copy Skill — AI skill file for writing copy that converts. Works with Claude Code, Cursor, ChatGPT, Gemini, and any LLM.

The Direct Response Copy Skill

Write copy that converts. Landing pages, emails, sales copy, headlines, CTAs, social posts — anything persuasive.

This is an AI skill file. It turns any AI into a direct response copywriter trained on the frameworks of Schwartz, Hopkins, Ogilvy, Halbert, Caples, Sugarman, and Collier. Instead of getting generic AI copy, you get internet-native writing that sounds like a smart friend explaining something — while quietly deploying every persuasion principle in the book.


How to use this

@hmnd
hmnd / anonymous_google_profile_images.md
Last active May 26, 2026 17:07
Definitive list of anonymous Google Profile Images
@bertsky
bertsky / plot-cuda-util.sh
Last active May 26, 2026 17:01
Plot GPU compute and memory utilization curve
#!/usr/bin/env bash
fname=$1
# if the log file does not exist yet, record it (stop by pressing ctrl+c)
if ! test -f $fname; then
nvidia-smi -f $fname -l 1 --format=csv --query-gpu=timestamp,memory.total,memory.used,utilization.gpu,utilization.memory &
bg=$!
@pawekz
pawekz / MultiWAN.md
Last active May 26, 2026 17:00 — forked from Vladkarok/MultiWAN and routing on MikroTik RouterOS.md
Multi WAN MikroTik routerOS v6 & v7
@aparente
aparente / SKILL.md
Last active May 26, 2026 16:59
tufte-viz Claude Code skill — Edward Tufte data visualization principles

name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays